from flask import Flask ,render_template,request

app = Flask(__name__)

@app.route('/')
def index():
    return "Hello World!"

@app.route('/login')
def login():
    username = "yang"
    pwd = "123"

    dbusername = "yang"
    dbpwd = "1234"

    if username==dbusername:
        if pwd==dbpwd:
            return "welcome to my website"
        else:
            return "sorry,your password is wrong"
    else:
        return "sorry,your name does not exit,please register"

if __name__=='__main__':
    app.run(debug=True)